#ifndef MQTT_H
#define MQTT_H

#include "zndevicebase.h"
#include "qmqttclient.h"
#include "mqtt_data.h"

class MQTT : public ZNDeviceWork
{
    Q_OBJECT
public:
    explicit MQTT();
    virtual ~MQTT();
    virtual void moveToThread(QThread* thread);
signals:

public slots:
//    virtual QJsonObject getDevDataStruct(QString msgName);
//    virtual QJsonObject getDevJson();
//    virtual QString configDev(QJsonObject config);
//    virtual QString addData(QJsonObject jsObj);
//    virtual QString configData(QString name, QJsonObject jsObj);
//    virtual QString removeData(QString name);
//    virtual void rename(QString newName);
//private:
//    int connect(QString RemAddress, int Rack, int Slot);
//protected:
//    void timerEvent(QTimerEvent* event);
private:
    QMqttClient* mqttClient;


    int workTimerID = -1;

};

#endif
